VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
  Persistable = 0  'NotPersistable
  DataBindingBehavior = 0  'vbNone
  DataSourceBehavior  = 0  'vbNone
  MTSTransactionMode  = 0  'NotAnMTSObject
END
Attribute VB_Name = "UtilConexion"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_Ext_KEY = "SavedWithClassBuilder6" ,"Yes"
Attribute VB_Ext_KEY = "Top_Level" ,"Yes"
Attribute VB_Ext_KEY = "Member0" ,"bParametro"
Option Explicit
Private mvarsConnectionString As String
Private mvarsUsuario As String
Private mvarsClave As String
Private mvarConnection As Connection
Friend Property Let sConnectionString(ByVal vData As String)
    mvarsConnectionString = vData
End Property
Public Property Get sUsuario() As String
    sUsuario = mvarsUsuario
End Property
Public Property Let sUsuario(ByVal parm As String)
    mvarsUsuario = parm
End Property
Friend Property Get sConnectionString() As String
    sConnectionString = mvarsConnectionString
End Property
Friend Property Get Connection() As Connection
If mvarConnection.State = 0 Then
    mvarConnection.Open mvarsConnectionString
End If
    Set Connection = mvarConnection
End Property
Public Sub transactionBegin()
mvarConnection.BeginTrans
End Sub
Public Sub transactionRollBack()
mvarConnection.RollbackTrans
End Sub
Public Sub transactionCommit()
mvarConnection.CommitTrans
End Sub
Public Property Get sClave() As String
    sClave = mvarsClave
End Property
Public Property Let sClave(ByVal parm As String)
    mvarsClave = parm
End Property
Private Sub Class_Initialize()
Set mvarConnection = New Connection
End Sub
